import { get, post } from '@/utils/request'

export const blockList = (query) => {
  return get('/admin/block/getById', query)
}

export const blockDataAdd = (query) => {
  return post('/admin/block/data/saveOrUpdateBatch', query)
}

export const blockDataDel = (query) => {
  return get('/admin/block/data/delete', query)
}
//一定程度上相似，但支持sourceId等查询
export const blockData_list = (query) => {
  return get('/admin/blockData/list', query)
}

//一定程度上相似，但支持sourceId等查询
export const createBlockDataId = (blockId,sourceId) => {
  return blockId+"-"+sourceId;
}
